import React from 'react';
import RouterConfig from './router';
import Loading from './components/Loading';

import { useLoading } from './state/common/hooks';

import './styles/App.less';
type IProps = {

}

const App: React.FC<IProps> = () => {

    const loading = useLoading()

    return (
        <div className="App">
            {
                loading && <Loading />
            }
            <RouterConfig />
        </div>
    );
}

export default App;
